package com.boot.controller.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.entities.CommonResult;
import com.entities.Payment;

/**
 * Description:
 *
 * @Autor: Rolin
 * datetime: 05-08-16:26
 */
public class HandlerException {
//    没有注册到spring ioc 容器中需要 采用static进行标注
    public static CommonResult<Payment> test1(BlockException blockException){
        return new CommonResult<Payment>("自定义限流处理方式1号",444,null);
    }
}
